<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v_model绑定textarea</title>
</head>
<body>
  <div id="app">
    <!--1. 手动实现双向绑定-->
    <textarea cols="20" rows="10" v-model="content"></textarea>
    <p>输入的内容: {{content}}</p>
  </div>
  <script src="../lib/vue.js"></script>
  <script>
    // 使用vue
    const app = Vue.createApp({
      data: function(){
        return {
          content: ""  
        }
      }
      ,methods: {
      },
      computed: {
        
      },
      watch: {
       
      }
    }
    )
    // 挂载 
    app.mount("#app")
  </script>

</body>
</html>
